package com.zt.bigdata.elasticsearch.web.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletRequest;
import java.io.IOException;

/**
 * @ClassName HtmlController
 * @Description
 * @Author zhangtonghy
 * @Date 2019-01-30 15:44
 * @Copyright: 版权所有 (C) zt zt.
 * @注意：本内容仅限于zt内部传阅，禁止外泄以及用于其他的商业目的
 **/
@PropertySource("classpath:application.yml")
@Controller
public class HtmlController {
    private static final Logger logger = LoggerFactory.getLogger(HtmlController.class);

    @RequestMapping("/")
    public String index(HttpServletRequest request) throws IOException {
        return "index";
    }

    @RequestMapping("/es/list")
    public String list() {
        return "list";
    }

}
